extends Area2D

var score_var = 0
func _ready():
	pass
	
func _on_player_area_area_entered(area):
	print_debug(area)
	if "Bomb" in area.name:
		get_tree().paused = true
		get_tree().current_scene.get_node("gameover").show()
		pass
	elif "Baoxiang" in area.name:
		score_var += 10
		var score_node = get_tree().current_scene.get_node("score")
		score_node.text = "score" + str(score_var)
		area.queue_free()
		get_parent().position = Vector2(492,456)
		pass
	pass
